package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class OrderController {
    @RequestMapping("/v1/orders/add")
    @ResponseBody
    public String add() {
        return "添加订单成功！";
    }
    @RequestMapping("/v1/orders/del")
    @ResponseBody
    public String del() {
        return "删除订单成功！";
    }
    @RequestMapping("/v1/orders/list")
    @ResponseBody
    public String list() {
        return "查询订单成功！";
    }
    @RequestMapping ("/v1/orders/update")
    @ResponseBody
    public String update() {
        return "更新订单成功！";
    }

}
